﻿<%@ Page Title="" Language="C#" MasterPageFile="~/AdminPanel/AdminSite.Master" AutoEventWireup="true" CodeBehind="DriverFullView.aspx.cs" Inherits="FastTrackCabService.AdminPanel.DriverFullView" %>
<%@ Import Namespace="BusinessLogicLayer" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <link href="../Style/FullView.css" rel="stylesheet" type="text/css"/>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:DetailsView ID="DetailsView1" CssClass="detailsView" runat="server"
                     Height="50px" Width="125px"
                     AutoGenerateRows="False" CellPadding="4" ForeColor="#333333"
                     GridLines="None" HeaderText="Driver's details"
                     AutoGenerateEditButton='<%# Roles.GetRolesForUser(User.Identity.Name).Contains("Manager") %>' onmodechanging="DetailsView1_OnModeChanging">
        <AlternatingRowStyle BackColor="White" ForeColor="#284775"/>
        <CommandRowStyle BackColor="#E2DED6" Font-Bold="True"/>
        <EditRowStyle BackColor="#999999"/>
        <FieldHeaderStyle BackColor="#E9ECF1" Font-Bold="True"/>
        <Fields>
            <asp:BoundField DataField="StaffId" ReadOnly="True" HeaderText="Staff Id"/>
            <asp:BoundField DataField="FirstName" HeaderText="First Name"/>
            <asp:BoundField DataField="LastName" HeaderText="Last Name"/>
            <asp:BoundField DataField="EMail" HeaderText="E-Mail"/>
            <asp:BoundField DataField="TelephoneNo" HeaderText="Telephone No"/>
            <asp:BoundField DataField="Address" HeaderText="Address"/>
            <asp:TemplateField HeaderText="Subsidiary Id">
                <ItemTemplate>
                    <asp:Label ID="Label1" runat="server" Text='<%# CityBLL.GetCityById(SubsidiaryBLL.GetCityIdBySubsidiaryId(Convert.ToByte(Eval("SubsidiaryId")))).Name %>'></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:BoundField DataField="LicenseNo" HeaderText="License number"/>
            <asp:BoundField DataField="Availability" HeaderText="Availability"/>
        </Fields>
        <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White"/>
        <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White"/>
        <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center"/>
        <RowStyle BackColor="#F7F6F3" ForeColor="#333333"/>
    </asp:DetailsView>
</asp:Content>